package com.nassir.excel.model;

import org.smodel.io.bean.annotation.Attribute;

/**
 * 
 * @author zhangqiulong
 *
 */
public class Cell {
	
	@Attribute
	private String title;
	
	private Object value;
	
	@Attribute
	private String width;
	
	@Attribute
	private String type;
	@Attribute
	private String format;
	
	
	//private ICellWriter cellWriter;
	
   

	

	public String getWidth() {
		return width;
	}

	public void setWidth(String width) {
		this.width = width;
	}

	public Object getValue() {
		return value;
	}

	public void setValue(Object value) {
		this.value = value;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {//throws InstantiationException, IllegalAccessException, ClassNotFoundException {
		this.type = type;
		/*if(null != type)
		{
		this.cellWriters.add((ICellWriter) Class.forName(type).newInstance());
		}*/
	}

	public String getFormat() {
		return format;
	}

	public void setFormat(String format) {
		this.format = format;
	}
 
}
